package enumDemo;

public class staticDemo {
    public staticDemo(){
        System.out.println("1默认构造方法***");
    }
    {
        System.out.println("2非静态代码块");
    }
    static {
        System.out.println("3静态代码块");
    }
    private static void test(){
        System.out.println("4静态方法中的内容**");
        {
            System.out.println("5静态方法中的代码块！");
        }
    }

    public static void main(String[] args) {
        staticDemo staticDemo = new staticDemo();
        staticDemo.test();
    }



}
